package indi.kider.server.apartment.service.related;

import indi.kider.common.model.employee.Employee;
import indi.kider.common.model.employee.Tenant;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import pers.vankid.common.model.base.CommonResponse;

import java.util.List;

@FeignClient(value = "human-resources")
public interface EmployeeService {
    @GetMapping("employee/{employeeId}")
    CommonResponse<Employee> getEmployeeById(@PathVariable(value = "employeeId") Long employeeId);

    @GetMapping("employee/loginName/{loginName}")
    CommonResponse<List<Employee>> getEmploeesToLogin(@PathVariable(value = "loginName") String loginName);

    @GetMapping("tenant/{mainId}/friend")
    CommonResponse<List<Tenant>> getTenants(@PathVariable(value = "mainId") Long mainId);
}
